﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.ObjectModel;
using FY13.Data;
using System.Linq;

namespace FY13.ViewModel
{
    public class ReminderViewMoel
    {

        internal static ObservableCollection<Data.Reminder> Reminders = new ObservableCollection<Data.Reminder>() { 
            new Data.Reminder() { Time=new DateTime(2012,10,30,8,30,0), Content="General Session" },
            new Data.Reminder() { Time=new DateTime(2012,10,30,19,0,0), Content="Gala Dinner" },
            new Data.Reminder() { Time=new DateTime(2012,10,31,9,30,0), Content="Gathering for Teambuilding" }
        };
        public ObservableCollection<DataGroup<Reminder>> ReminderDataSource
        {
            get;
            set;
        }

        public ReminderViewMoel()
        {
            this.ReminderDataSource = new ObservableCollection<DataGroup<Reminder>>();
            this.ReminderDataSource.Add(new DataGroup<Reminder>() { Date = Reminders[0].Time, Items = new ObservableCollection<Reminder>(Reminders.Take(2)) });
            this.ReminderDataSource.Add(new DataGroup<Reminder>() { Date = Reminders[2].Time, Items = new ObservableCollection<Reminder>(Reminders.Skip(2)) });
        }
    }
}
